package cn.yinyu.queue.module.ecg.controller.admin.appointment.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.yinyu.queue.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.yinyu.queue.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 预约分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppointmentPageReqVO extends PageParam {

    @Schema(description = "预约申请号", example = "2024435")
    private String applyNo;

    @Schema(description = "就诊流水号", example = "2024546")
    private String episodeId;

    @Schema(description = "患者编号", example = "29034")
    private String patId;

    @Schema(description = "患者姓名", example = "赵六")
    private String patName;

    @Schema(description = "患者性别")
    private Byte patGender;

    @Schema(description = "患者生日")
    private LocalDateTime patBirthday;

    @Schema(description = "患者手机")
    private String patMobile;

    @Schema(description = "患者电话")
    private String patPhone;

    @Schema(description = "身份证号", example = "798")
    private String patIdentityId;

    @Schema(description = "患者地址")
    private String patAddr;

    @Schema(description = "患者所在科室代码")
    private String patDeptCode;

    @Schema(description = "患者所在科室名称")
    private String patDeptDesc;

    @Schema(description = "患者所在病区代码")
    private String patWardCode;

    @Schema(description = "患者所在病区名称")
    private String patWardDesc;

    @Schema(description = "床号")
    private String patBedNo;

    @Schema(description = "预约日期")
    private LocalDate bookDate;

    @Schema(description = "预约时间段")
    private Integer bookTimeslot;

    @Schema(description = "预约发生时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] bookTime;

    @Schema(description = "预约检查类型", example = "2")
    private Integer bookCheckType;

    @Schema(description = "预约来源：X系统、护士手动预约")
    private String bookSrc;

    @Schema(description = "已付款")
    private Integer paid;

}